using Google.ProtocolBuffers;
using micromsg.Proto;
using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using System.IO;
using System.Runtime.CompilerServices;
namespace micromsg
{
	[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
	public sealed class SendCardRequest : GeneratedMessageLite<SendCardRequest, SendCardRequest.Builder>
	{
		[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
		public sealed class Builder : GeneratedBuilderLite<SendCardRequest, SendCardRequest.Builder>
		{
			private bool resultIsReadOnly;
			private SendCardRequest result;
			protected override SendCardRequest.Builder ThisBuilder
			{
				get
				{
					return this;
				}
			}
			public override bool IsInitialized
			{
				get
				{
					return this.result.IsInitialized;
				}
			}
			protected override SendCardRequest MessageBeingBuilt
			{
				get
				{
					return this.PrepareBuilder();
				}
			}
			public override SendCardRequest DefaultInstanceForType
			{
				get
				{
					return SendCardRequest.DefaultInstance;
				}
			}
			public BaseRequest BaseRequest
			{
				get
				{
					return this.result.BaseRequest;
				}
				set
				{
					this.SetBaseRequest(value);
				}
			}
			public string UserName
			{
				get
				{
					return this.result.UserName;
				}
				set
				{
					this.SetUserName(value);
				}
			}
			public string Content
			{
				get
				{
					return this.result.Content;
				}
				set
				{
					this.SetContent(value);
				}
			}
			public uint SendCardBitFlag
			{
				get
				{
					return this.result.SendCardBitFlag;
				}
				set
				{
					this.SetSendCardBitFlag(value);
				}
			}
			public uint Style
			{
				get
				{
					return this.result.Style;
				}
				set
				{
					this.SetStyle(value);
				}
			}
			public string ContentEx
			{
				get
				{
					return this.result.ContentEx;
				}
				set
				{
					this.SetContentEx(value);
				}
			}
			public Builder()
			{
				this.result = SendCardRequest.DefaultInstance;
				this.resultIsReadOnly = true;
			}
			internal Builder(SendCardRequest cloneFrom)
			{
				this.result = cloneFrom;
				this.resultIsReadOnly = true;
			}
			private SendCardRequest PrepareBuilder()
			{
				if (this.resultIsReadOnly)
				{
					SendCardRequest other = this.result;
					this.result = new SendCardRequest();
					this.resultIsReadOnly = false;
					this.MergeFrom(other);
				}
				return this.result;
			}
			public override SendCardRequest.Builder Clear()
			{
				this.result = SendCardRequest.DefaultInstance;
				this.resultIsReadOnly = true;
				return this;
			}
			public override SendCardRequest.Builder Clone()
			{
				if (this.resultIsReadOnly)
				{
					return new SendCardRequest.Builder(this.result);
				}
				return new SendCardRequest.Builder().MergeFrom(this.result);
			}
			public override SendCardRequest BuildPartial()
			{
				if (this.resultIsReadOnly)
				{
					return this.result;
				}
				this.resultIsReadOnly = true;
				return this.result.MakeReadOnly();
			}
			public override SendCardRequest.Builder MergeFrom(IMessageLite other)
			{
				if (other is SendCardRequest)
				{
					return this.MergeFrom((SendCardRequest)other);
				}
				base.MergeFrom(other);
				return this;
			}
			public override SendCardRequest.Builder MergeFrom(SendCardRequest other)
			{
				return this;
			}
			public override SendCardRequest.Builder MergeFrom(ICodedInputStream input)
			{
				return this.MergeFrom(input, ExtensionRegistry.Empty);
			}
			public override SendCardRequest.Builder MergeFrom(ICodedInputStream input, ExtensionRegistry extensionRegistry)
			{
				this.PrepareBuilder();
				uint num;
				string text;
				while (input.ReadTag(out num, out text))
				{
					if (num == 0u && text != null)
					{
						int num2 = Array.BinarySearch<string>(SendCardRequest._sendCardRequestFieldNames, text, StringComparer.get_Ordinal());
						if (num2 < 0)
						{
							this.ParseUnknownField(input, extensionRegistry, num, text);
							continue;
						}
						num = SendCardRequest._sendCardRequestFieldTags[num2];
					}
					uint num3 = num;
					if (num3 <= 18u)
					{
						if (num3 == 0u)
						{
							throw InvalidProtocolBufferException.InvalidTag();
						}
						if (num3 == 10u)
						{
							BaseRequest.Builder builder = BaseRequest.CreateBuilder();
							if (this.result.hasBaseRequest)
							{
								builder.MergeFrom(this.BaseRequest);
							}
							input.ReadMessage(builder, extensionRegistry);
							this.BaseRequest = builder.BuildPartial();
							continue;
						}
						if (num3 == 18u)
						{
							this.result.hasUserName = input.ReadString(ref this.result.userName_);
							continue;
						}
					}
					else
					{
						if (num3 <= 32u)
						{
							if (num3 == 26u)
							{
								this.result.hasContent = input.ReadString(ref this.result.content_);
								continue;
							}
							if (num3 == 32u)
							{
								this.result.hasSendCardBitFlag = input.ReadUInt32(ref this.result.sendCardBitFlag_);
								continue;
							}
						}
						else
						{
							if (num3 == 40u)
							{
								this.result.hasStyle = input.ReadUInt32(ref this.result.style_);
								continue;
							}
							if (num3 == 50u)
							{
								this.result.hasContentEx = input.ReadString(ref this.result.contentEx_);
								continue;
							}
						}
					}
					if (WireFormat.IsEndGroupTag(num))
					{
						return this;
					}
					this.ParseUnknownField(input, extensionRegistry, num, text);
				}
				return this;
			}
			public SendCardRequest.Builder SetBaseRequest(BaseRequest value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasBaseRequest = true;
				this.result.baseRequest_ = value;
				return this;
			}
			public SendCardRequest.Builder SetBaseRequest(BaseRequest.Builder builderForValue)
			{
				ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
				this.PrepareBuilder();
				this.result.hasBaseRequest = true;
				this.result.baseRequest_ = builderForValue.Build();
				return this;
			}
			public SendCardRequest.Builder MergeBaseRequest(BaseRequest value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				if (this.result.hasBaseRequest && this.result.baseRequest_ != BaseRequest.DefaultInstance)
				{
					this.result.baseRequest_ = BaseRequest.CreateBuilder(this.result.baseRequest_).MergeFrom(value).BuildPartial();
				}
				else
				{
					this.result.baseRequest_ = value;
				}
				this.result.hasBaseRequest = true;
				return this;
			}
			public SendCardRequest.Builder ClearBaseRequest()
			{
				this.PrepareBuilder();
				this.result.hasBaseRequest = false;
				this.result.baseRequest_ = null;
				return this;
			}
			public SendCardRequest.Builder SetUserName(string value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasUserName = true;
				this.result.userName_ = value;
				return this;
			}
			public SendCardRequest.Builder ClearUserName()
			{
				this.PrepareBuilder();
				this.result.hasUserName = false;
				this.result.userName_ = "";
				return this;
			}
			public SendCardRequest.Builder SetContent(string value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasContent = true;
				this.result.content_ = value;
				return this;
			}
			public SendCardRequest.Builder ClearContent()
			{
				this.PrepareBuilder();
				this.result.hasContent = false;
				this.result.content_ = "";
				return this;
			}
			public SendCardRequest.Builder SetSendCardBitFlag(uint value)
			{
				this.PrepareBuilder();
				this.result.hasSendCardBitFlag = true;
				this.result.sendCardBitFlag_ = value;
				return this;
			}
			public SendCardRequest.Builder ClearSendCardBitFlag()
			{
				this.PrepareBuilder();
				this.result.hasSendCardBitFlag = false;
				this.result.sendCardBitFlag_ = 0u;
				return this;
			}
			public SendCardRequest.Builder SetStyle(uint value)
			{
				this.PrepareBuilder();
				this.result.hasStyle = true;
				this.result.style_ = value;
				return this;
			}
			public SendCardRequest.Builder ClearStyle()
			{
				this.PrepareBuilder();
				this.result.hasStyle = false;
				this.result.style_ = 0u;
				return this;
			}
			public SendCardRequest.Builder SetContentEx(string value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasContentEx = true;
				this.result.contentEx_ = value;
				return this;
			}
			public SendCardRequest.Builder ClearContentEx()
			{
				this.PrepareBuilder();
				this.result.hasContentEx = false;
				this.result.contentEx_ = "";
				return this;
			}
		}
		public const int BaseRequestFieldNumber = 1;
		public const int UserNameFieldNumber = 2;
		public const int ContentFieldNumber = 3;
		public const int SendCardBitFlagFieldNumber = 4;
		public const int StyleFieldNumber = 5;
		public const int ContentExFieldNumber = 6;
		private static readonly SendCardRequest defaultInstance;
		private static readonly string[] _sendCardRequestFieldNames;
		private static readonly uint[] _sendCardRequestFieldTags;
		private bool hasBaseRequest;
		private BaseRequest baseRequest_;
		private bool hasUserName;
		private string userName_ = "";
		private bool hasContent;
		private string content_ = "";
		private bool hasSendCardBitFlag;
		private uint sendCardBitFlag_;
		private bool hasStyle;
		private uint style_;
		private bool hasContentEx;
		private string contentEx_ = "";
		private int memoizedSerializedSize = -1;
		public static SendCardRequest DefaultInstance
		{
			get
			{
				return SendCardRequest.defaultInstance;
			}
		}
		public override SendCardRequest DefaultInstanceForType
		{
			get
			{
				return SendCardRequest.DefaultInstance;
			}
		}
		protected override SendCardRequest ThisMessage
		{
			get
			{
				return this;
			}
		}
		public BaseRequest BaseRequest
		{
			get
			{
				return this.baseRequest_ ?? BaseRequest.DefaultInstance;
			}
		}
		public string UserName
		{
			get
			{
				return this.userName_;
			}
		}
		public string Content
		{
			get
			{
				return this.content_;
			}
		}
		public uint SendCardBitFlag
		{
			get
			{
				return this.sendCardBitFlag_;
			}
		}
		public uint Style
		{
			get
			{
				return this.style_;
			}
		}
		public string ContentEx
		{
			get
			{
				return this.contentEx_;
			}
		}
		public override bool IsInitialized
		{
			get
			{
				return this.hasBaseRequest && this.BaseRequest.IsInitialized;
			}
		}
		public override int SerializedSize
		{
			get
			{
				int num = this.memoizedSerializedSize;
				if (num != -1)
				{
					return num;
				}
				num = 0;
				if (this.hasBaseRequest)
				{
					num += CodedOutputStream.ComputeMessageSize(1, this.BaseRequest);
				}
				if (this.hasUserName)
				{
					num += CodedOutputStream.ComputeStringSize(2, this.UserName);
				}
				if (this.hasContent)
				{
					num += CodedOutputStream.ComputeStringSize(3, this.Content);
				}
				if (this.hasSendCardBitFlag)
				{
					num += CodedOutputStream.ComputeUInt32Size(4, this.SendCardBitFlag);
				}
				if (this.hasStyle)
				{
					num += CodedOutputStream.ComputeUInt32Size(5, this.Style);
				}
				if (this.hasContentEx)
				{
					num += CodedOutputStream.ComputeStringSize(6, this.ContentEx);
				}
				this.memoizedSerializedSize = num;
				return num;
			}
		}
		private SendCardRequest()
		{
		}
		public override void WriteTo(ICodedOutputStream output)
		{
			int arg_06_0 = this.SerializedSize;
			string[] sendCardRequestFieldNames = SendCardRequest._sendCardRequestFieldNames;
			if (this.hasBaseRequest)
			{
				output.WriteMessage(1, sendCardRequestFieldNames[0], this.BaseRequest);
			}
			if (this.hasUserName)
			{
				output.WriteString(2, sendCardRequestFieldNames[5], this.UserName);
			}
			if (this.hasContent)
			{
				output.WriteString(3, sendCardRequestFieldNames[1], this.Content);
			}
			if (this.hasSendCardBitFlag)
			{
				output.WriteUInt32(4, sendCardRequestFieldNames[3], this.SendCardBitFlag);
			}
			if (this.hasStyle)
			{
				output.WriteUInt32(5, sendCardRequestFieldNames[4], this.Style);
			}
			if (this.hasContentEx)
			{
				output.WriteString(6, sendCardRequestFieldNames[2], this.ContentEx);
			}
		}
		public override int GetHashCode()
		{
			int num = base.GetType().GetHashCode();
			if (this.hasBaseRequest)
			{
				num ^= this.baseRequest_.GetHashCode();
			}
			if (this.hasUserName)
			{
				num ^= this.userName_.GetHashCode();
			}
			if (this.hasContent)
			{
				num ^= this.content_.GetHashCode();
			}
			if (this.hasSendCardBitFlag)
			{
				num ^= this.sendCardBitFlag_.GetHashCode();
			}
			if (this.hasStyle)
			{
				num ^= this.style_.GetHashCode();
			}
			if (this.hasContentEx)
			{
				num ^= this.contentEx_.GetHashCode();
			}
			return num;
		}
		public override bool Equals(object value)
		{
			SendCardRequest sendCardRequest = value as SendCardRequest;
			return sendCardRequest != null && (this.hasBaseRequest == sendCardRequest.hasBaseRequest && (!this.hasBaseRequest || this.baseRequest_.Equals(sendCardRequest.baseRequest_))) && (this.hasUserName == sendCardRequest.hasUserName && (!this.hasUserName || this.userName_.Equals(sendCardRequest.userName_))) && (this.hasContent == sendCardRequest.hasContent && (!this.hasContent || this.content_.Equals(sendCardRequest.content_))) && (this.hasSendCardBitFlag == sendCardRequest.hasSendCardBitFlag && (!this.hasSendCardBitFlag || this.sendCardBitFlag_.Equals(sendCardRequest.sendCardBitFlag_))) && (this.hasStyle == sendCardRequest.hasStyle && (!this.hasStyle || this.style_.Equals(sendCardRequest.style_))) && (this.hasContentEx == sendCardRequest.hasContentEx && (!this.hasContentEx || this.contentEx_.Equals(sendCardRequest.contentEx_)));
		}
		public override void PrintTo(TextWriter writer)
		{
			GeneratedMessageLite<SendCardRequest, SendCardRequest.Builder>.PrintField("BaseRequest", this.hasBaseRequest, this.baseRequest_, writer);
			GeneratedMessageLite<SendCardRequest, SendCardRequest.Builder>.PrintField("UserName", this.hasUserName, this.userName_, writer);
			GeneratedMessageLite<SendCardRequest, SendCardRequest.Builder>.PrintField("Content", this.hasContent, this.content_, writer);
			GeneratedMessageLite<SendCardRequest, SendCardRequest.Builder>.PrintField("SendCardBitFlag", this.hasSendCardBitFlag, this.sendCardBitFlag_, writer);
			GeneratedMessageLite<SendCardRequest, SendCardRequest.Builder>.PrintField("Style", this.hasStyle, this.style_, writer);
			GeneratedMessageLite<SendCardRequest, SendCardRequest.Builder>.PrintField("ContentEx", this.hasContentEx, this.contentEx_, writer);
		}
		public static SendCardRequest ParseFrom(byte[] data)
		{
			return SendCardRequest.CreateBuilder().MergeFrom(data).BuildParsed();
		}
		private SendCardRequest MakeReadOnly()
		{
			return this;
		}
		public static SendCardRequest.Builder CreateBuilder()
		{
			return new SendCardRequest.Builder();
		}
		public override SendCardRequest.Builder ToBuilder()
		{
			return SendCardRequest.CreateBuilder(this);
		}
		public override SendCardRequest.Builder CreateBuilderForType()
		{
			return new SendCardRequest.Builder();
		}
		public static SendCardRequest.Builder CreateBuilder(SendCardRequest prototype)
		{
			return new SendCardRequest.Builder(prototype);
		}
		static SendCardRequest()
		{
			SendCardRequest.defaultInstance = new SendCardRequest().MakeReadOnly();
			SendCardRequest._sendCardRequestFieldNames = new string[]
			{
				"BaseRequest",
				"Content",
				"ContentEx",
				"SendCardBitFlag",
				"Style",
				"UserName"
			};
			SendCardRequest._sendCardRequestFieldTags = new uint[]
			{
				10u,
				26u,
				50u,
				32u,
				40u,
				18u
			};
			object.ReferenceEquals(micromsg.Proto.SendCardRequest.Descriptor, null);
		}
	}
}
